
---@class RedDotsExpeditionSweepHandler
RedDotsExpeditionSweepHandler ={};
local this = RedDotsExpeditionSweepHandler;

function RedDotsExpeditionSweepHandler.init()
    CloseEvent(Config.EventType.ExpeditionSweepRefresh,this.update);
    ListenEvent(Config.EventType.ExpeditionSweepRefresh,this.update);
    return this;
end

--
function RedDotsExpeditionSweepHandler.getFlag(...)
    if logicMgr.FuncOpenManager.isOpen(Config.FuncOpenType.expedition,false) then
        if logicMgr.ExpeditionMgr.HasSweepRedPoint() then
            return Config.RedDotsFlagState.Needful
        end
    end
    return Config.RedDotsFlagState.None;
end


function RedDotsExpeditionSweepHandler.update()
    RedDotsManager.addBroadcast(Config.RedDotsType.ExpeditionSweep);
end
